﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;

namespace OnlineMediaAnalyzer.Models
{
    public class MemberMention
    {
        public int ID { get; set; }

        public int PartyMemberID { get; set; }
        public virtual PartyMember PartyMember { get; set; }

        public int FeedID { get; set; }
        public virtual Feed Feed { get; set; }

        [Required(ErrorMessage = "Mentions count is required")]
        public int MentionsCount { get; set; }

        [Required(ErrorMessage = "Positive mentions count is required")]
        public int PosMentionsCount { get; set; }

        [Required(ErrorMessage = "Negative mentions count is required")]
        public int NegMentionsCount { get; set; }

        [Required(ErrorMessage = "Date is required")]
        public DateTime Date { get; set; }
    }
}